package com.cungmua.app.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;

/**
 * Created by kelvin.nguyen on 7/23/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderDetails{
    private int orderId;
    private OrderDetailsInfo  orderInfo;
    private AddressInfo addressInfo;
    private List<ProfileOrderDetail> profileOrderDetailList;
    private int TongTienCanThanhToan;
    private int amountTotal;
    private int amountPay;
    private int amountShipping;
    private int amountBonus;

    public OrderDetails() {
    }

    public OrderDetails(int orderId, OrderDetailsInfo orderInfo, AddressInfo addressInfo, List<ProfileOrderDetail> profileOrderDetailList, int tongTienCanThanhToan, int amountTotal, int amountPay, int amountShipping, int amountBonus) {
        this.orderId = orderId;
        this.orderInfo = orderInfo;
        this.addressInfo = addressInfo;
        this.profileOrderDetailList = profileOrderDetailList;
        TongTienCanThanhToan = tongTienCanThanhToan;
        this.amountTotal = amountTotal;
        this.amountPay = amountPay;
        this.amountShipping = amountShipping;
        this.amountBonus = amountBonus;
    }


    @JsonIgnoreProperties("ID")
    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    @JsonIgnoreProperties("OrderInfo")
    public void setOrderInfo(OrderDetailsInfo orderInfo) {
        this.orderInfo = orderInfo;
    }

    @JsonIgnoreProperties("AddressInfo")
    public void setAddressInfo(AddressInfo addressInfo) {
        this.addressInfo = addressInfo;
    }

    @JsonIgnoreProperties("ProfileOrderDetailList")
    public void setProfileOrderDetailList(List<ProfileOrderDetail> profileOrderDetailList) {
        this.profileOrderDetailList = profileOrderDetailList;
    }

    @JsonIgnoreProperties("TongTienCanThanhToan")
    public void setTongTienCanThanhToan(int tongTienCanThanhToan) {
        TongTienCanThanhToan = tongTienCanThanhToan;
    }

    @JsonIgnoreProperties("AmountTotal")
    public void setAmountTotal(int amountTotal) {
        this.amountTotal = amountTotal;
    }

    @JsonIgnoreProperties("AmountPay")
    public void setAmountPay(int amountPay) {
        this.amountPay = amountPay;
    }

    @JsonIgnoreProperties("AmountShipping")
    public void setAmountShipping(int amountShipping) {
        this.amountShipping = amountShipping;
    }

    @JsonIgnoreProperties("AmountBonus")
    public void setAmountBonus(int amountBonus) {
        this.amountBonus = amountBonus;
    }
    //=======get ==============


    public int getOrderId() {
        return orderId;
    }

    public OrderDetailsInfo getOrderInfo() {
        return orderInfo;
    }

    public AddressInfo getAddressInfo() {
        return addressInfo;
    }

    public List<ProfileOrderDetail> getProfileOrderDetailList() {
        return profileOrderDetailList;
    }

    public int getTongTienCanThanhToan() {
        return TongTienCanThanhToan;
    }

    public int getAmountTotal() {
        return amountTotal;
    }

    public int getAmountPay() {
        return amountPay;
    }

    public int getAmountShipping() {
        return amountShipping;
    }

    public int getAmountBonus() {
        return amountBonus;
    }
}
